package com.java2207.group1.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * Lenovo 2022/7/26 10:58
 *
 * 病人病例
 * 关于病人的信息
 *
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Cases {

    private Integer id;         //病例编号

    private String name;        //姓名

    private String sex;         //性别

    private String age;         //年龄

    private String tel;         //电话

    private String symptom;     //症状

    private String prescription;//处方

    private String drugname;     //药品名称

    private Integer drugnumb;    //药品数量


    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;          //日期


}
